math/big.decimal.exp (field)
25 uses
math/big (current package)
decimal.go#L29: exp int // exponent
decimal.go#L59: x.exp = 0
decimal.go#L85: x.exp = n
decimal.go#L124: x.exp += 1 - r
decimal.go#L167: case x.exp <= 0:
decimal.go#L169: buf = make([]byte, 0, 2+(-x.exp)+len(x.mant))
decimal.go#L171: buf = appendZeros(buf, -x.exp)
decimal.go#L174: case /* 0 < */ x.exp < len(x.mant):
decimal.go#L177: buf = append(buf, x.mant[:x.exp]...)
decimal.go#L179: buf = append(buf, x.mant[x.exp:]...)
decimal.go#L183: buf = make([]byte, 0, x.exp)
decimal.go#L185: buf = appendZeros(buf, x.exp-len(x.mant))
decimal.go#L241: x.exp++
decimal.go#L268: x.exp = 0
ftoa.go#L109: prec = max(len(d.mant)-d.exp, 0)
ftoa.go#L121: d.round(d.exp + prec)
ftoa.go#L139: if eprec > len(d.mant) && len(d.mant) >= d.exp {
ftoa.go#L149: exp := d.exp - 1
ftoa.go#L156: if prec > d.exp {
ftoa.go#L159: return fmtF(buf, max(prec-d.exp, 0), d)
ftoa.go#L270: exp = int64(d.exp) - 1 // -1 because first digit was printed before '.'
ftoa.go#L290: if d.exp > 0 {
ftoa.go#L291: m := min(len(d.mant), d.exp)
ftoa.go#L293: for ; m < d.exp; m++ {
ftoa.go#L304: buf = append(buf, d.at(d.exp+i))
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |